//
//  ARTSleepSetPopView.h
//  ChartsDemo
//
//  Created by yunda on 2022/1/18.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@interface ARTSleepSetModel : NSObject

@property (strong, nonatomic)  NSString *title;

@property (strong, nonatomic)  NSString *value;

- (instancetype)initWithTitle:(NSString *)title value:(NSString *)value;

@end

@interface ARTSleepSetPopView : UIView<UIPickerViewDelegate,UIPickerViewDataSource>{
    QMUIModalPresentationViewController *_presentVc;
    ARTSleepSetModel *_currentModel;
}

@property (weak, nonatomic) IBOutlet UIPickerView *pickerView;

@property (strong, nonatomic)  NSArray <ARTSleepSetModel *>*dataSourceArray;

// 默认值
@property (assign, nonatomic)  NSInteger  defaultValue;

// 回调
@property (copy, nonatomic)  void(^okBlock)(ARTSleepSetModel *model);

- (void)show;

@end

NS_ASSUME_NONNULL_END
